class Solution(object):
    def smallestEqual(self, nums):
        for c, num in enumerate(nums):
            if c % 10 == num:
                return c
        return -1
